import service from '@/utils/request'
// @Tags CaseFact
// @Summary 创建查明案件事实管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.CaseFact true "创建查明案件事实管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /ICF/createCaseFact [post]
export const createCaseFact = (data) => {
  return service({
    url: '/ICF/createCaseFact',
    method: 'post',
    data
  })
}

// @Tags CaseFact
// @Summary 删除查明案件事实管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.CaseFact true "删除查明案件事实管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /ICF/deleteCaseFact [delete]
export const deleteCaseFact = (params) => {
  return service({
    url: '/ICF/deleteCaseFact',
    method: 'delete',
    params
  })
}

// @Tags CaseFact
// @Summary 批量删除查明案件事实管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除查明案件事实管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /ICF/deleteCaseFact [delete]
export const deleteCaseFactByIds = (params) => {
  return service({
    url: '/ICF/deleteCaseFactByIds',
    method: 'delete',
    params
  })
}

// @Tags CaseFact
// @Summary 更新查明案件事实管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.CaseFact true "更新查明案件事实管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /ICF/updateCaseFact [put]
export const updateCaseFact = (data) => {
  return service({
    url: '/ICF/updateCaseFact',
    method: 'put',
    data
  })
}

// @Tags CaseFact
// @Summary 用id查询查明案件事实管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.CaseFact true "用id查询查明案件事实管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /ICF/findCaseFact [get]
export const findCaseFact = (params) => {
  return service({
    url: '/ICF/findCaseFact',
    method: 'get',
    params
  })
}

// @Tags CaseFact
// @Summary 分页获取查明案件事实管理列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取查明案件事实管理列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /ICF/getCaseFactList [get]
export const getCaseFactList = (params) => {
  return service({
    url: '/ICF/getCaseFactList',
    method: 'get',
    params
  })
}

// @Tags CaseFact
// @Summary 不需要鉴权的查明案件事实管理接口
// @Accept application/json
// @Produce application/json
// @Param data query flaudReq.CaseFactSearch true "分页获取查明案件事实管理列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /ICF/getCaseFactPublic [get]
export const getCaseFactPublic = () => {
  return service({
    url: '/ICF/getCaseFactPublic',
    method: 'get',
  })
}
